<%@ page language="java" import="dao.impl.CaseHistoryDaoImpl,entity.CaseHistory" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ page import="java.util.List" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<%
    String id = request.getParameter("num");
    CaseHistoryDaoImpl caseHistoryDao = new CaseHistoryDaoImpl();
    List<CaseHistory> list = caseHistoryDao.getByCaseHistoryId(id);

    for (int i = 0; i < list.size(); i++) {
%>
<table border="1" style="background-color:#C4FFC9;text-align:center;border:0.1px solid #E51094 ;">
    <tr>
        <td style="width:400px">病历号</td>
        <td><%=list.get(i).getCh_number()%>
        </td>
    </tr>
    <tr>
        <td style="width:400px">病历创建时间</td>
        <td><%=list.get(i).getCh_date()%>
        </td>
    </tr>
    <tr>
        <td style="width:400px">病历更新时间</td>
        <td><%=list.get(i).getCh_updateDate()%>
        </td>
    </tr>
    <tr>
        <td style="width:400px">接诊医生id</td>
        <td><%=list.get(i).getCh_doctorid()%>
        </td>

    </tr>
    <tr>
        <td style="width:400px">病人身份证号</td>
        <td><%=list.get(i).getCh_patientid()%>
        </td>

    </tr>
    <tr>
        <td style="width:400px">症状</td>
        <td><%=list.get(i).getCh_symptom()%>
        </td>

    </tr>
    <tr>
        <td style="width:400px">检查项目</td>
        <td><%=list.get(i).getCh_checkitem()%>
        </td>

    </tr>
    <tr>
        <td style="width:400px">检查结果</td>
        <td><%=list.get(i).getCh_result()%>
        </td>
    </tr>
    <tr>
        <td style="width:400px">临床诊断</td>
        <td><%=list.get(i).getCh_clinicaldiagnosis()%>
        </td>

    </tr>
    <tr>
        <td style="width:400px">治疗方案</td>
        <td><%=list.get(i).getCh_plan()%>
        </td>

    </tr>
    <tr>
        <td style="width:400px">药物单</td>
        <td><%=list.get(i).getCh_druglist()%>
        </td>

    </tr>
    <tr>
        <td style="width:400px">医嘱</td>
        <td><%=list.get(i).getCh_advice()%>
        </td>
    </tr>


    <%}%>


    </tr>


</table>
</body>
</html>